<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>JS Examples, from Teamlab</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <!-- Le styles -->
    <link href="css/bootstrap.css" rel="stylesheet">
    <link href="css/bootstrap-responsive.css" rel="stylesheet">
  </head>

  <body>
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="#">JS Examples</a>
          <div class="nav-collapse">
            <ul class="nav">
              <li><a href="index.html">Home</a></li>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

    <div class="container-fluid">
      <div class="row-fluid">
        <div class="span3">
          <div class="well sidebar-nav">
            <ul class="nav nav-list">
              <li class="nav-header">Examples</li>
              <script src="js/menu.js"></script>
            </ul>
          </div><!--/.well -->
        </div><!--/span-->
        <div class="span9">
          <h1>Example - Всплытие</h1>
          <p>Вспомнить и вписать умный термин, который это обозначает.</p>
          <div class="row-fluid">
            <div class="span4">
              <h2>Один вариант</h2>
              <textarea>
<javascript>
  (function () {
    var i = '1';
    function f () {
      return i;
    }
    alert('f return ' + f());
  })();
</javascript>
              </textarea>
              <br>
              <span class="btn example-02-01">exec</span>
            </div><!--/span-->
            <div class="span4">
              <h2>Другой вариант</h2>
              <textarea>
<javascript>
  (function () {
    var i = '1';
    function f () {
      return i;
      var i = 2;
    }
    alert('f return ' + f());
  })();
</javascript>
              </textarea>
              <br>
              <span class="btn example-02-02">exec</span>
            </div><!--/span-->
            <div class="span4">
              <h2>Другой вариант</h2>
              <textarea>
<javascript>
  (function () {
    var f1 = function () {}
    function f2 () {}
    (function () {
      console.log(typeof f1, typeof f2);
      var f1 = function () {}
      function f2 () {}
    })()
  })();
</javascript>
              </textarea>
              <br>
              <span class="btn example-02-03">exec</span>
            </div><!--/span-->
          </div><!--/row-->
        </div><!--/span-->
      </div><!--/row-->

      <hr>

      <footer>
        <p>&copy; <a href="http://teamlab.com" target="_blank">Teamlab</a>&nbsp; <a href="http://twitter.github.com/bootstrap/base-css.html" target="_blank">Bootstrap, from Twitter</a></p>
      </footer>

    </div><!--/.fluid-container-->

    <!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="js/jquery.js"></script>
    <script src="js/bootstrap-transition.js"></script>
    <script src="js/bootstrap-alert.js"></script>
    <script src="js/bootstrap-modal.js"></script>
    <script src="js/bootstrap-dropdown.js"></script>
    <script src="js/bootstrap-scrollspy.js"></script>
    <script src="js/bootstrap-tab.js"></script>
    <script src="js/bootstrap-tooltip.js"></script>
    <script src="js/bootstrap-popover.js"></script>
    <script src="js/bootstrap-button.js"></script>
    <script src="js/bootstrap-collapse.js"></script>
    <script src="js/bootstrap-carousel.js"></script>
    <script src="js/bootstrap-typeahead.js"></script>
    <script src="js/examples/ex-02.js"></script>
  </body>
</html> 